#include "includes.h"

extern FILE * TRACE;
extern FILE * B_TRACE;

void exit_on_error()
{
	printf("\n  Hence, not executing further instructions.");
	printf("\n");
	printf("\n  Press a key to exit ... ");
	fflush(stdin);
	getchar();
	getchar();

	fflush(TRACE);
	fclose(TRACE);
	fflush(B_TRACE);
	fclose(B_TRACE);

	print_mem_loc();
	getchar();
	getchar();
	exit(0);
}
